package top.mcwebsite.playandroid.common.api

import android.app.Application
import kotlinx.coroutines.flow.Flow

interface AppService {
    fun init(application: Application)

    fun getApplication(): Application

    fun isDarkMode(): Boolean

    fun darkMode(isDarkMode: Boolean)

    fun isFollowSystemTheme(): Boolean

    fun followSystemTheme(isFollow: Boolean)

    fun isDarkModeFlow(): Flow<Boolean?>

    fun isFollowSystemThemeFlow(): Flow<Boolean?>
}